import request from '@/utils/request'

export function addDepartment(data) {
  return request({
    url: '/departmentBase/save',
    method: 'post',
    data
  })
}

export function getDepartment(data) {
  return request({
    url: '/departmentBase/queryList',
    method: 'get',
    params: data
  })
}

export function getDepartmentById(data) {
  return request({
    url: '/userBase/queryById',
    method: 'get',
    params: data
  })
}
export function updateDepartment(data) {
  return request({
    url: `/departmentBase/updateById`,
    method: 'post',
    data
  })
}

export function getDepartmentInfo(data) {
  console.log(data)
  return request({
    url: '/userBase/queryDepartmentInfo',
    method: 'get',
    params: data
  })
}

export function getDepartmentMobile(data) {
  console.log(data)
  return request({
    url: '/userBase/queryDepartmentMobile',
    method: 'get',
    params: data
  })
}

export function getQuery(data) {
  console.log(data)
  return request({
    url: '/userBase/queryDepartmentMobile',
    method: 'get',
    params: data
  })
}

